using System;
using System.Collections.Generic;
using System.Text;

namespace BusinessLogicLayer
{
    using BusinessObjectLayer;
    using DataAccessLayer;
    using DataObjectLayer;

    public class CategoryBLL
    {
        public CategoryBOL[] Select()
        {
            CategoryDAL _CategoryDAL = new CategoryDAL(CategoryDOL.QueryStatus.Select);
            return _CategoryDAL.Select();
        }
        public void Insert(CategoryBOL _CategoryBOL)
        {
            CategoryDAL _CategoryDAL = new CategoryDAL(CategoryDOL.QueryStatus.Insert, _CategoryBOL);
            _CategoryDAL.Insert();
        }
        public void Update(CategoryBOL _CategoryBOL)
        {
            CategoryDAL _CategoryDAL = new CategoryDAL(CategoryDOL.QueryStatus.Update, _CategoryBOL);
            _CategoryDAL.Update();
        }
        public void Delete(CategoryBOL _CategoryBOL)
        {
            CategoryDAL _CategoryDAL = new CategoryDAL(CategoryDOL.QueryStatus.Delete, _CategoryBOL);
            _CategoryDAL.Delete();
        }
        public long? SelectMaxId()
        {
            CategoryDAL _CategoryDAL = new CategoryDAL(CategoryDOL.QueryStatus.SelectMaxId);
            return _CategoryDAL.SelectMaxId();
        }
        public CategoryBOL[] SelectComboBox()
        {
            CategoryDAL _CategoryDAL = new CategoryDAL(CategoryDOL.QueryStatus.SelectComboBox);
            return _CategoryDAL.SelectComboBox();
        }
    }
}
